﻿namespace QMERP.Domain.Dtos
{
    public class RetailOrderSaveRequest
    {
        public long? Id { get; set; }
        /// <summary>
        /// 客户单号
        /// </summary>
        public string CustomerOrderNumber { get; set; } = "";
        /// <summary>
        /// 交收单号
        /// </summary>
        public string? TrayNumber { get; set; }
        /// <summary>
        /// 预出货日期
        /// </summary>
        public DateTime? DeliveryOn { get; set; }
        /// <summary>
        /// 出货时段
        /// </summary>
        public int OutRank { get; set; }
        /// <summary>
        /// 玻璃胶片
        /// </summary>
        public string? Material { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 焗色
        /// </summary>
        public string? Coating { get; set; }
        /// <summary>
        /// 茶色
        /// </summary>
        public string? TintingColor { get; set; }
        /// <summary>
        /// 水银
        /// </summary>
        public string? Mirror { get; set; }
        /// <summary>
        /// 染色
        /// </summary>
        public string? TintingCode { get; set; }
        /// <summary>
        /// 染色名称
        /// </summary>
        public string? TintingName { get; set; }
        /// <summary>
        /// UV
        /// </summary>
        public bool UV { get; set; } = false;
        /// <summary>
        /// 抛光
        /// </summary>
        public bool PaoGuang { get; set; } = false;
        /// <summary>
        /// 彩边
        /// </summary>
        public string? CaiBian { get; set; }
        /// <summary>
        /// 加硬
        /// </summary>
        public bool Hard { get; set; } = false;
        /// <summary>
        /// 车边
        /// </summary>
        public string? CheBian { get; set; }
        /// <summary>
        /// 开坑
        /// </summary>
        public string? KaiKeng { get; set; }
        /// <summary>
        /// 批花
        /// </summary>
        public string? PiHua { get; set; }
        /// <summary>
        /// 钻孔
        /// </summary>
        public string? ZuanKong { get; set; }
        /// <summary>
        /// 镜架
        /// </summary>
        public string? Frame { get; set; }

        public string? CustomerCode { get; set;   }

        /// <summary>
        /// 客户Id
        /// </summary>
        public long CustomerId { get; set; }
        /// <summary>
        /// 合约Id
        /// </summary>
        public long ContractId { get; set; }

        public List<RetailOrderDetailSaveRequest> RetailOrderDetails { get; set; } = new();
    }
}
